package com.zimi.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 流程角色表 model
 *
 * @author lnintr
 * @since 2019-07-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "WfRole对象", description = "流程角色表")
public class WfRole extends Model<WfRole> {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "机构id")
    private Integer orgId;

    @ApiModelProperty(value = "英文名（机构内唯一）")
    private String enName;

    @ApiModelProperty(value = "中文名")
    private String cnName;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "角色状态：1-正常; 2-无效")
    private Integer state;

    @ApiModelProperty(value = "新建人")
    private Integer createUser;

    @ApiModelProperty(value = "新建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改人")
    private Integer updateUser;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @Override
    protected Serializable pkVal() {
        return id;
    }

}
